Feature: Create a new categories
	As an admin
	I want to add more categories
	So that the users have more options

Scenario: Go to create new category page
	Given I am the admin
	And I am on "Listing categories" page
	When I click on "New category" button
	Then I should be navigated to "New category" page
	And I should see a form with fields "Title" and "Description"

Scenario: Create a VALID new category
	Given I am admin
	And I am on "New category" page
	And I have filled in the "Title" with "False information" 
	And I have filled in the "Description" with "some description"
	When I click on "Create" button
	Then I should be navigated to a new page
	And I should see "Title: False information" 
	And I should see "Description: some description"

Scenario: Check the new category on "Listing categories" page
	Given I have created a new category with title False information
	When I go to "Listing categories" page
	Then I should see "False Information" listed as one of the category
	
Scenario: Create an INVALID category
	Given I am admin
	And I am on "New category" page
	And I have filled in the "Title" with "" 
	And I have filled in the "Description" with ""
	When I click on "Create" button
	Then I should be navigated to the same page
	And I should see a warning "Title cannot be blank"